function validateFirstname(){

    if (document.getElementById("firstname").value=="")
        {
             document.getElementById("firstNameHint").innerHTML="<img src='./images/error.png' alt='right'/>First name is required";

             return false;
        }
        else
        {
             document.getElementById("firstNameHint").innerHTML="<img src='./images/right.png' alt='right'/>";

             return true;
        }
}

function validateLastname(){
    if (document.getElementById("lastname").value=="")
        {
             document.getElementById("lastNameHint").innerHTML="<img src='./images/error.png' alt='right'/>Last name is required";
             return false;
        }
        else
        {
             document.getElementById("lastNameHint").innerHTML="<img src='./images/right.png' alt='right'/>";
             return true;
        }
}

function validatePassword(){
    if (document.getElementById("password_confirm").value==document.getElementById("password").value){
        document.getElementById("passwordHint").innerHTML="<img src='./images/right.png' alt='right'/>";
    }
    else {
        document.getElementById("passwordHint").innerHTML="<img src='./images/error.png' alt='right'/>Password is not same";
    }
}
       


